﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace IntroToMVC.Models
{
    /// <summary>
    /// This is the Dinosaur Class...RWAR
    /// </summary>
    public class Dinosaur : Animal
    {
        
        public string Diet { get; set; }
        private int legs;
        public override int Legs
        {
            get { return legs; }
            set {
                if (value > 4)
                {
                    legs = 4;
                }
                else
                {
                    legs = value;
                }
            }
        }
        public bool isAlive { get; set; }
        public override string Noise()
        {
            return "RAWWWWRRR";
        }
        public static string GoExtinct()
        {
            return "They're gone...they're all gone!";
        }
        private void lastThing() {
            this.isAlive = false;
        }
        
        public Dinosaur()
        {
            lastThing();
        }
        public Dinosaur(string species, string carnivore, int legs = 4)
        {
            Species = species;
            Diet = carnivore;
            Legs = legs;
        }
        public Dinosaur(string diet, string species, double weight)
        {
            Species = species;
            Diet = diet;
            Weight = weight;
        }
    }
}